package cn.ztelovecly.springboot.framework.base;

import java.io.Serializable;

public class CacheKey implements Serializable {

    /**
     * 模块名称
     */
    private String moduleName;

    /**
     * 模型名称
     */
    private String modelName;

    /**
     * 承租人ID
     */
    private Long tenantId;

    /**
     * 模型对应的数据ID
     */
    private String modelKey;

    public CacheKey(String moduleName, String modelName, Long tenantId, String modelKey) {
        this.moduleName = moduleName;
        this.modelName = modelName;
        this.tenantId = tenantId;
        this.modelKey = modelKey;
    }

    public CacheKey(){

    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public String getModelKey() {
        return modelKey;
    }

    public void setModelKey(String modelKey) {
        this.modelKey = modelKey;
    }
}
